ia.MapData Class
Contains information about a map file which has been published through the InstantAtlas publisher.
Constructor
ia.MapData
()
Item Index
Methods
Methods
_parseLayerProperties
-
data
-
layer
Parses layer properties.
Parameters:
-
data
JSONThe raw data.
-
layer
ia.LayerBaseThe layer.
addEventListener
-
eventType
-
fnc
-
obj
Add an event listener.
Parameters:
-
eventType
StringThe type of event to listen for.
-
fnc
FunctionThe function to call when the event occurs.
-
obj
ObjectAn optional parent object.
dispatchEvent
-
event
Dispatch an event to the listeners.
Parameters:
-
event
ObjectThe event object.
getLayer
-
id
Returns the layer that corresponds to the id.
Parameters:
-
id
StringThe layer id.
Returns:
loadVisibleLayers
()
Loads the visible data layers.
parseData
-
url
-
callbackFunction
Loads and parses the source file then calls the given function with the ReportConfig object as the first parameter.
Parameters:
-
url
StringThe url to the data.
-
callbackFunction
FunctionThe call back function.
parseData
-
data
-
callbackFunction
Updates the data.
Parameters:
-
data
JSONThe raw data.
-
callbackFunction
FunctionThe call back function.
removeListener
-
obj
Removes all event listeners for the given object.
Parameters:
-
obj
ObjectThe object.
Properties
googleApiKey
String
The google map api key.
googleMapType
String
The google map type.
path
String
The directory path to the data source.
Default: ""
template
String
The template number.
tilePath
String
The path to tiles for tile layers.
url
String
The url of the data source.
useGoogleMaps
Boolean
Set to true if using google maps.
Default: false
version
String
The version number.